package com.darly.book.presenter.contract;

import com.darly.book.model.bean.CommentBean;
import com.darly.book.model.bean.CommentDetailBean;
import com.darly.book.ui.base.BaseContract;

import java.util.List;


public interface CommentDetailContract {

    interface View extends BaseContract.BaseView {
        //全部加载的时候显示
        void finishRefresh(CommentDetailBean commentDetail,
                           List<CommentBean> bestComments, List<CommentBean> comments);

        void finishLoad(List<CommentBean> comments);

        void showLoadError();
    }

    interface Presenter extends BaseContract.BasePresenter<View> {
        void refreshCommentDetail(String detailId, int start, int limit);

        void loadComment(String detailId, int start, int limit);
    }
}
